package com.zwr.sheller.shop.service;

import com.zwr.sheller.core.common.LSYBusinessException;
import com.zwr.sheller.core.pojo.Merchant;
import com.zwr.sheller.core.pojo.Seller;
import com.zwr.sheller.core.pojo.Store;
import com.zwr.sheller.core.service.BaseService;

import java.util.Map;

/**
 * @Author LSY
 * @Date 2022/1/7 8:54
 * @Version 1.0
 **/
public interface SellerService extends BaseService<Seller> {

    Map<String, Object> findSellers(Integer page, Integer num);

    void ShellerRegister(Seller seller, Merchant merchant, Store store, String code, Boolean businessLicenseStatus, Boolean tradeLicenseStatus, Boolean idCardFrontStatus, Boolean idCardBackStatus, Boolean storeLogoStatus, Boolean storeBackgroundStatus) throws LSYBusinessException;

    void addSeller(Seller seller) throws LSYBusinessException;

    void updateSeller(Long sid, String account, String mail);

    String sendSMSVerificationCode(String phone);

    void updateSellerPassword(String password, String code) throws LSYBusinessException;

    void updateSellerPhone(String phone, String code) throws LSYBusinessException;
}
